  /**
   * Generate time : 2016-09-02 10:17:53
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cp.domain;

import com.baosight.iplat4j.util.NumberUtils;

import java.math.BigDecimal;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;

import java.util.HashMap;
import java.util.Map;

import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCPProducePlanZC 
 * table comment : 抽采钻尺划上报信息 
 */
public class ZMCPProducePlanZC extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdDepartmentId = " ";		/* 施工部门ID*/
	private String fdDepartment = " ";		/* 施工部门*/
	private String fdProfessionalplanId = " ";		/* 专业计划ID*/
	private String fdProduceplanId = " ";		/* 生产计划ID*/
	private String fdPlanYear = " ";		/* 计划年份*/
	private String fdPlanMonth = " ";		/* 计划月份*/
	private String fdRemarks = " ";		/* 备注*/
	private String fdBb = " ";		/* 班别*/
	private BigDecimal fdPlanValue = new BigDecimal("0");		/* 计划量*/
	private BigDecimal fdPlanZx = new BigDecimal("0");		/* 中旬预计量*/
	private BigDecimal fdPlanSx = new BigDecimal("0");		/* 上旬预计量*/
	private BigDecimal fdPlanXx = new BigDecimal("0");		/* 下旬预计量*/
	private BigDecimal fdRs = new BigDecimal("0");		/* 人数*/
	private BigDecimal fdZjs = new BigDecimal("0");		/* 钻机数*/
	private String fdDd = " ";		/* 地点*/
	private String fdCreateDepartmentId = " ";		/* 编制部门ID*/
	private String fdCreateDepartment = " ";		/* 编制部门*/
	private String fdCreatorId = " ";		/* 编制人ID*/
	private String fdCreator = " ";		/* 编制人*/
	private String fdHoleType =" ";
	private String fdCreattime = " ";	/* 创建时间*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("施工部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("施工部门");
	eiMetadata.addMeta(eiColumn);

	eiColumn = new EiColumn("fdHoleType");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("钻孔类别");
	eiMetadata.addMeta(eiColumn);

	
	eiColumn = new EiColumn("fdProfessionalplanId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("专业计划ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdProduceplanId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("生产计划ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanYear");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("计划年份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanMonth");
	eiColumn.setFieldLength(2);	
	eiColumn.setDescName("计划月份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemarks");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBb");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("班别");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanValue");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("计划量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanZx");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("中旬预计量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanSx");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("上旬预计量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanXx");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("下旬预计量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRs");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("人数");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdZjs");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("钻机数");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDd");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("地点");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreateDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("编制部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreateDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("编制部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreatorId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("编制人ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreator");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("编制人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreattime");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("创建时间");
	eiMetadata.addMeta(eiColumn);
	
	}
	/**
	 * the constructor
	 */
	public ZMCPProducePlanZC() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdDepartmentId - 施工部门ID
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}
	
	/**
	 * set the fdDepartmentId - 施工部门ID
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}
	
	/**
	 * get the fdDepartment - 施工部门
	 * @return the fdDepartment
	 */
	public String getFdDepartment() {
		return this.fdDepartment;
	}
	
	/**
	 * set the fdDepartment - 施工部门
	 */
	public void setFdDepartment(String fdDepartment) {
		this.fdDepartment = fdDepartment;
	}
	
	/**
	 * get the fdProfessionalplanId - 专业计划ID
	 * @return the fdProfessionalplanId
	 */
	public String getFdProfessionalplanId() {
		return this.fdProfessionalplanId;
	}
	
	/**
	 * set the fdProfessionalplanId - 专业计划ID
	 */
	public void setFdProfessionalplanId(String fdProfessionalplanId) {
		this.fdProfessionalplanId = fdProfessionalplanId;
	}
	
	/**
	 * get the fdProduceplanId - 生产计划ID
	 * @return the fdProduceplanId
	 */
	public String getFdProduceplanId() {
		return this.fdProduceplanId;
	}
	
	/**
	 * set the fdProduceplanId - 生产计划ID
	 */
	public void setFdProduceplanId(String fdProduceplanId) {
		this.fdProduceplanId = fdProduceplanId;
	}
	
	/**
	 * get the fdPlanYear - 计划年份
	 * @return the fdPlanYear
	 */
	public String getFdPlanYear() {
		return this.fdPlanYear;
	}
	
	/**
	 * set the fdPlanYear - 计划年份
	 */
	public void setFdPlanYear(String fdPlanYear) {
		this.fdPlanYear = fdPlanYear;
	}
	
	/**
	 * get the fdPlanMonth - 计划月份
	 * @return the fdPlanMonth
	 */
	public String getFdPlanMonth() {
		return this.fdPlanMonth;
	}
	
	/**
	 * set the fdPlanMonth - 计划月份
	 */
	public void setFdPlanMonth(String fdPlanMonth) {
		this.fdPlanMonth = fdPlanMonth;
	}
	
	/**
	 * get the fdRemarks - 备注
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}
	
	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}
	
	/**
	 * get the fdBb - 班别
	 * @return the fdBb
	 */
	public String getFdBb() {
		return this.fdBb;
	}
	
	/**
	 * set the fdBb - 班别
	 */
	public void setFdBb(String fdBb) {
		this.fdBb = fdBb;
	}
	
	/**
	 * get the fdPlanValue - 计划量
	 * @return the fdPlanValue
	 */
	public BigDecimal getFdPlanValue() {
		return this.fdPlanValue;
	}
	
	/**
	 * set the fdPlanValue - 计划量
	 */
	public void setFdPlanValue(BigDecimal fdPlanValue) {
		this.fdPlanValue = fdPlanValue;
	}
	
	/**
	 * get the fdPlanZx - 中旬预计量
	 * @return the fdPlanZx
	 */
	public BigDecimal getFdPlanZx() {
		return this.fdPlanZx;
	}
	
	/**
	 * set the fdPlanZx - 中旬预计量
	 */
	public void setFdPlanZx(BigDecimal fdPlanZx) {
		this.fdPlanZx = fdPlanZx;
	}
	
	/**
	 * get the fdPlanSx - 上旬预计量
	 * @return the fdPlanSx
	 */
	public BigDecimal getFdPlanSx() {
		return this.fdPlanSx;
	}
	
	/**
	 * set the fdPlanSx - 上旬预计量
	 */
	public void setFdPlanSx(BigDecimal fdPlanSx) {
		this.fdPlanSx = fdPlanSx;
	}
	
	/**
	 * get the fdPlanXx - 下旬预计量
	 * @return the fdPlanXx
	 */
	public BigDecimal getFdPlanXx() {
		return this.fdPlanXx;
	}
	
	/**
	 * set the fdPlanXx - 下旬预计量
	 */
	public void setFdPlanXx(BigDecimal fdPlanXx) {
		this.fdPlanXx = fdPlanXx;
	}
	
	/**
	 * get the fdRs - 人数
	 * @return the fdRs
	 */
	public BigDecimal getFdRs() {
		return this.fdRs;
	}
	
	/**
	 * set the fdRs - 人数
	 */
	public void setFdRs(BigDecimal fdRs) {
		this.fdRs = fdRs;
	}
	
	/**
	 * get the fdZjs - 钻机数
	 * @return the fdZjs
	 */
	public BigDecimal getFdZjs() {
		return this.fdZjs;
	}
	
	/**
	 * set the fdZjs - 钻机数
	 */
	public void setFdZjs(BigDecimal fdZjs) {
		this.fdZjs = fdZjs;
	}
	
	/**
	 * get the fdDd - 地点
	 * @return the fdDd
	 */
	public String getFdDd() {
		return this.fdDd;
	}
	
	/**
	 * set the fdDd - 地点
	 */
	public void setFdDd(String fdDd) {
		this.fdDd = fdDd;
	}
	
	/**
	 * get the fdCreateDepartmentId - 编制部门ID
	 * @return the fdCreateDepartmentId
	 */
	public String getFdCreateDepartmentId() {
		return this.fdCreateDepartmentId;
	}
	
	/**
	 * set the fdCreateDepartmentId - 编制部门ID
	 */
	public void setFdCreateDepartmentId(String fdCreateDepartmentId) {
		this.fdCreateDepartmentId = fdCreateDepartmentId;
	}
	
	/**
	 * get the fdCreateDepartment - 编制部门
	 * @return the fdCreateDepartment
	 */
	public String getFdCreateDepartment() {
		return this.fdCreateDepartment;
	}
	
	/**
	 * set the fdCreateDepartment - 编制部门
	 */
	public void setFdCreateDepartment(String fdCreateDepartment) {
		this.fdCreateDepartment = fdCreateDepartment;
	}
	
	/**
	 * get the fdCreatorId - 编制人ID
	 * @return the fdCreatorId
	 */
	public String getFdCreatorId() {
		return this.fdCreatorId;
	}
	
	/**
	 * set the fdCreatorId - 编制人ID
	 */
	public void setFdCreatorId(String fdCreatorId) {
		this.fdCreatorId = fdCreatorId;
	}
	
	/**
	 * get the fdCreator - 编制人
	 * @return the fdCreator
	 */
	public String getFdCreator() {
		return this.fdCreator;
	}
	
	/**
	 * set the fdCreator - 编制人
	 */
	public void setFdCreator(String fdCreator) {
		this.fdCreator = fdCreator;
	}
	
	public String getFdHoleType() {
		return fdHoleType;
	}
	public void setFdHoleType(String fdHoleType) {
		this.fdHoleType = fdHoleType;
	}
	/**
	 * get the fdCreattime 
	 * @return the fdCreattime
	 */
	public String getFdCreattime() {
		return this.fdCreattime;
	}
	
	/**
	 * set the fdCreattime 
	 */
	public void setFdCreattime(String fdCreattime) {
		this.fdCreattime = fdCreattime;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartment")), fdDepartment));
		setFdProfessionalplanId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProfessionalplanId")), fdProfessionalplanId));
		setFdProduceplanId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProduceplanId")), fdProduceplanId));
		setFdPlanYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanYear")), fdPlanYear));
		setFdPlanMonth(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanMonth")), fdPlanMonth));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));
		setFdBb(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBb")), fdBb));
		setFdPlanValue(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdPlanValue")), fdPlanValue));
		setFdPlanZx(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdPlanZx")), fdPlanZx));
		setFdPlanSx(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdPlanSx")), fdPlanSx));
		setFdPlanXx(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdPlanXx")), fdPlanXx));
		setFdRs(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdRs")), fdRs));
		setFdZjs(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdZjs")), fdZjs));
		setFdDd(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDd")), fdDd));
		setFdCreateDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateDepartmentId")), fdCreateDepartmentId));
		setFdCreateDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateDepartment")), fdCreateDepartment));
		setFdCreatorId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreatorId")), fdCreatorId));
		setFdCreator(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreator")), fdCreator));
		setFdHoleType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdHoleType")), fdHoleType));
		setFdCreattime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreattime")), fdCreattime));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdDepartmentId",StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));	
			map.put("fdDepartment",StringUtils.toString(fdDepartment, eiMetadata.getMeta("fdDepartment")));	
			map.put("fdProfessionalplanId",StringUtils.toString(fdProfessionalplanId, eiMetadata.getMeta("fdProfessionalplanId")));	
			map.put("fdProduceplanId",StringUtils.toString(fdProduceplanId, eiMetadata.getMeta("fdProduceplanId")));	
			map.put("fdPlanYear",StringUtils.toString(fdPlanYear, eiMetadata.getMeta("fdPlanYear")));	
			map.put("fdPlanMonth",StringUtils.toString(fdPlanMonth, eiMetadata.getMeta("fdPlanMonth")));	
			map.put("fdRemarks",StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));	
			map.put("fdBb",StringUtils.toString(fdBb, eiMetadata.getMeta("fdBb")));	
			map.put("fdPlanValue",StringUtils.toString(fdPlanValue, eiMetadata.getMeta("fdPlanValue")));	
			map.put("fdPlanZx",StringUtils.toString(fdPlanZx, eiMetadata.getMeta("fdPlanZx")));	
			map.put("fdPlanSx",StringUtils.toString(fdPlanSx, eiMetadata.getMeta("fdPlanSx")));	
			map.put("fdPlanXx",StringUtils.toString(fdPlanXx, eiMetadata.getMeta("fdPlanXx")));	
			map.put("fdRs",StringUtils.toString(fdRs, eiMetadata.getMeta("fdRs")));	
			map.put("fdZjs",StringUtils.toString(fdZjs, eiMetadata.getMeta("fdZjs")));	
			map.put("fdDd",StringUtils.toString(fdDd, eiMetadata.getMeta("fdDd")));	
			map.put("fdCreateDepartmentId",StringUtils.toString(fdCreateDepartmentId, eiMetadata.getMeta("fdCreateDepartmentId")));	
			map.put("fdCreateDepartment",StringUtils.toString(fdCreateDepartment, eiMetadata.getMeta("fdCreateDepartment")));	
			map.put("fdCreatorId",StringUtils.toString(fdCreatorId, eiMetadata.getMeta("fdCreatorId")));	
			map.put("fdCreator",StringUtils.toString(fdCreator, eiMetadata.getMeta("fdCreator")));
			map.put("fdHoleType",StringUtils.toString(fdHoleType, eiMetadata.getMeta("fdHoleType")));
			map.put("fdCreattime",StringUtils.toString(fdCreattime, eiMetadata.getMeta("fdCreattime")));
		
			return map;
	
	}
}